import Cookies from "js-cookie"
export const SetCookie = (name, Cookie) => {
        Cookies.set(name, Cookie, { expires: 7 })
    }
export const GetCookie = name => Cookies.get(name)
export const RemoveCookie = name => Cookies.remove(name)
export const setnullString = (resp)=>{
    if(!resp){
        resp={}
    }
    for(let i in resp){
        if(resp[i] && typeof(resp[i])== "object"){
            setnullString(resp[i])
        }else{
            if(Object.is(resp[i],null)){
                resp[i]={}
            }else if(resp[i]==="null"){
                resp[i] =""
            }
        }
    }
    return resp
}